//
//  LSCustomCellBackground.m
//  LibraryStorm
//
//  Created by Enel@Lightning on 3/26/14.
//  Copyright (c) 2014 3ATeam. All rights reserved.
//

#import "LSCustomCellBackground.h"
#import "UIColor+HexString.h"

@implementation LSCustomCellBackground

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Draw a rounded rect bezier path filled with orange
    CGContextRef aRef = UIGraphicsGetCurrentContext();
    CGContextSaveGState(aRef);
    UIBezierPath *bezierPath = [UIBezierPath bezierPathWithRoundedRect:rect cornerRadius:0.0f];
    [bezierPath setLineWidth:5.0f];

    UIColor *strokeColor = [UIColor whiteColor];
    [strokeColor setStroke];
    
    UIColor *fillColor = [UIColor colorWithHexString:Color_Orange_View];
    [fillColor setFill];
    
    [bezierPath stroke];
    [bezierPath fill];
    CGContextRestoreGState(aRef);
}

@end
